<?php
namespace app\exam\validate;
use think\Validate;

class Exam extends Validate{

    protected  $rule = [
        'title'  => 'require|max:25',
        ];
    protected  $message = [
        'title.require' => '试卷名必须',
        'title.max'     => '试卷名最多不能超过25个字符',
        ];

}